<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//3. 输入3个数,按大小输出这3个数（例如：用户输入的是：10 5 20，排序后为：5 10 20）
			    let a = parseInt(window.prompt("请输入a的值:"));
			    let b = parseInt(window.prompt("请输入b的值:"));
			    let c = parseInt(window.prompt("请输入c的值:"));
				if (a <= b) {					
					if (c <= a) {
						console.log(c + " " + a + " " + b);
					} else if (a <= c && c <= b) {
						console.log(a + " " + c + " " + b);
					} else if (b <= c) {
						console.log(a + " " + b + " " + c);
					}
				} else {
					if (c <= b) {
						console.logn(c + " " + b + " " + a);
					} else if (b <= c && c <= a) {
						console.log(b + " " + c + " " + a);
					} else if (a <= c) {
						console.log(b + " " + a + " " + c);
					}
				}
				
		</script>

	</body>
</html>
